1
general::
Inconvenience oneself or take extra trouble to do something beyond what is required. For example, He went out of his way to introduce me to everyone there, or She went out of her way to be kind. This usage alludes to deviating from one's intended path or normal procedures. [Mid-1700s]
American Heritage Idioms